package com.nuanshui.heatedloan.controller.dubbo.transform;

import org.springframework.stereotype.Component;
import com.alibaba.dubbo.config.annotation.Reference;
import com.nuanshui.heatedloan.constant.GlobalParam;
import com.nuanshui.heatedloan.userinfo.model.SimpleUserInfo;
import com.nuanshui.heatedloan.userinfo.tool.UserTool;

@Component
public class ConnectDubbo{

	@Reference(url=GlobalParam.USER_DUBBO_SERVER,timeout=GlobalParam.DUBBO_SERVER_TIME_OUT,version = GlobalParam.USER_DUBBO_SERVER_VERSION)
    private UserTool userTool;
	
	public SimpleUserInfo getSimpleUserInfo(String userId){
		return userTool.getSimpleUserInfo(userId);
	}
}
